<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="<c:url value='/static/jquery/jquery-1.9.1.min.js'/>" type="text/javascript"></script>

<title>公告详情</title>
</head>
<body>
	<div id="message"></div>
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="control-label">发送人：${announcement.username}</label>
					</div>
				</div>

				<div class="col-sm-6">
					<div class="form-group">
						<label class="control-label">发送时间:
							${fn:substring(announcement.sendtime,0,fn:indexOf(announcement.sendtime,'.')) }
						</label>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="control-label">公告标题：${announcement.bulletintitle }
						</label>
					</div>
				</div>
				
				<div class="col-sm-6">
					<div class="form-group">
						<label class="control-label">发布范围：
						<c:set  value="${announcement.scope}" var="scope"/>
						<c:set  value='<%=pageContext.getAttribute("scope")+""%>' var="scope"/>
										
						<c:choose>
							<c:when test="${scope=='1'}">
								全部商家
							</c:when>
							<c:when test="${scope=='2'}">
								全部买手
							</c:when>
							<c:when test="${scope=='3'}">
								指定范围发布
							</c:when>
							<c:when test="${scope=='0'}">
								全部
							</c:when>
						</c:choose>
						</label>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<div class="form-group">
						<label class="control-label">发布内容：
						${announcement.sendcontent}</label>
					</div>
				</div>
			</div>
			<div>
			<div class="form-group " style="text-align: center;">
				
				<button type="button" id="unsave" onClick="history.go(-1);" class="btn btn-default btn-sm"
					style="width: 150px">返 回</button>
			</div>
		</div>
		</div>
		
	</form>

	<script type="text/javascript">
		$(function($) {
			
		});
		
		
		//显示消息
		function showmessage(msg,callback){
			$('#message').ucMessage({
				msg:msg,
				callback:callback
			});
		}
	</script>
</body>
</html>